package com.hyacinth.dubbo.io.netty.protocol;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

/**
 * 通信数据包
 * @author zhangfb
 * @version 1.0.0.1
 * @since JDK 1.8
 */
@Data
public abstract class Packet {

    /**协议版本**/
    @JSONField(deserialize = false, serialize = false)
    private Byte version = 1;

    /**指令**/
    @JSONField(serialize = false)
    public abstract Byte getCommand();
}
